package com.qiantu.api.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Transient;
import org.greenrobot.greendao.annotation.Unique;
import org.greenrobot.greendao.annotation.Generated;

@Entity
public class HouseBean {

    @Id(autoincrement = true)
    private Long id;
    @Unique
    private String houseSerialNo;
    private String userSerialNo;
    private String name;
    @Transient
    private String newName;
    private String avatar;
    private double longitude;
    private double latitude;
    private String provinceId;
    private String province;
    private String cityId;
    private String city;
    private String districtId;
    private String district;
    private String address;
    private boolean isFlatFloor;
    //0:默认值 1：待过户
    private int type;
    private int range;
    private int roleType = 0;//0:户主，1:管理员
    private String createTime;

    @Generated(hash = 229132509)
    public HouseBean() {
    }

    @Generated(hash = 1369466846)
    public HouseBean(Long id, String houseSerialNo, String userSerialNo,
            String name, String avatar, double longitude, double latitude,
            String provinceId, String province, String cityId, String city,
            String districtId, String district, String address, boolean isFlatFloor,
            int type, int range, int roleType, String createTime) {
        this.id = id;
        this.houseSerialNo = houseSerialNo;
        this.userSerialNo = userSerialNo;
        this.name = name;
        this.avatar = avatar;
        this.longitude = longitude;
        this.latitude = latitude;
        this.provinceId = provinceId;
        this.province = province;
        this.cityId = cityId;
        this.city = city;
        this.districtId = districtId;
        this.district = district;
        this.address = address;
        this.isFlatFloor = isFlatFloor;
        this.type = type;
        this.range = range;
        this.roleType = roleType;
        this.createTime = createTime;
    }

    public String getHouseSerialNo() {
        return houseSerialNo;
    }

    public void setHouseSerialNo(String houseSerialNo) {
        this.houseSerialNo = houseSerialNo;
    }

    public String getUserSerialNo() {
        return userSerialNo;
    }

    public void setUserSerialNo(String userSerialNo) {
        this.userSerialNo = userSerialNo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public String getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(String provinceId) {
        this.provinceId = provinceId;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCityId() {
        return cityId;
    }

    public void setCityId(String cityId) {
        this.cityId = cityId;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrictId() {
        return districtId;
    }

    public void setDistrictId(String districtId) {
        this.districtId = districtId;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public boolean isFlatFloor() {
        return isFlatFloor;
    }

    public void setFlatFloor(boolean flatFloor) {
        isFlatFloor = flatFloor;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getRange() {
        return range;
    }

    public void setRange(int range) {
        this.range = range;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public boolean getIsFlatFloor() {
        return this.isFlatFloor;
    }

    public void setIsFlatFloor(boolean isFlatFloor) {
        this.isFlatFloor = isFlatFloor;
    }

    public String getNewName() {
        return newName;
    }

    public void setNewName(String newName) {
        this.newName = newName;
    }

    public void reName() {
        name = newName;
        newName = null;
    }

    public int getRoleType() {
        return roleType;
    }

    public void setRoleType(int roleType) {
        this.roleType = roleType;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
}
